<?php

include "./vendor/autoload.php";

var_dump(pathinfo( "http://ww1.sinaimg.cn/large/9150e4e5gy1g576lfalm7g204602mjtd.gif"));

/*

array(4) {
  ["dirname"]=>
  string(27) "http://ww1.sinaimg.cn/large"
  ["basename"]=>
  string(36) "9150e4e5gy1g576lfalm7g204602mjtd.gif"
  ["extension"]=>
  string(3) "gif"
  ["filename"]=>
  string(32) "9150e4e5gy1g576lfalm7g204602mjtd"
}

*/